package com.example.SolveRedundantCode;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.io.IOException;

/**
 * <pre>
 * 功能描述：
 * </pre>
 *
 * @author: 李明杰
 * @date: 2023/3/7 22:46
 */
@Component
@Slf4j
public class FTPClient {
    public String[] listDirectories(String directory) throws IOException {
        return new String[]{""};
    }

    public boolean deleteFile(String filePath) throws IOException {
        throw new IOException();
    }

    public void connect(String host, int i) {
        log.info("connect");
    }

    public void login(String username, String password) {
        log.info("login");
    }

    public void logout() {
        log.info("logout");
    }

    public void disconnect() {
        log.info("disconnect");
    }
}
